/**
 * Copyright 2012 Eliot Stock
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
import java.io.Serializable;

/**
 * Google Analytics event. See http://code.google.com/apis/analytics/docs/tracking/eventTrackerGuide.html.
 */
public class AnalyticsEvent implements Serializable {
	
	private static final long serialVersionUID = 1L;

	private String category;
	
	private String action;
	
	private String label;
	
	private Integer value;
	
	public AnalyticsEvent(String category, String action) {
		this.category = category;
		this.action = action;
	}
	
	public AnalyticsEvent(String category, String action, String label) {
		this(category, action);
		this.label = label;
	}

	public AnalyticsEvent(String category, String action, String label, Integer value) {
		this(category, action);
		this.label = label;
		this.value = value;
	}

	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category;
	}

	public String getAction() {
		return action;
	}

	public void setAction(String action) {
		this.action = action;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public Integer getValue() {
		return value;
	}

	public void setValue(Integer value) {
		this.value = value;
	}
	
}
